﻿
namespace DAPNet
{
    public class ClickRemover : IOfflineEffect
    {
        private IClickDetector clickDetector;

        private IClickCorrector clickCorrector;

        public ClickRemover(IClickDetector clickDetector, IClickCorrector clickCorrector)
        {
            this.clickDetector = clickDetector;
            this.clickCorrector = clickCorrector;
        }

        public void Process(SampleCollection samples)
        {
            //TODO: PASSING SAMPLE CLONE RECONSIDERATION.
            ClickDetection detection = clickDetector.Detect(samples);
            clickCorrector.Correct(samples, detection);
        }
    }
}
